// 内部转仓页面
import React from 'react';
import FirstContent from './firstContent';
import TotalTransferC from './totalTransferC';
import style from '../index.less';
class TransferInside extends React.Component {
  state = {
    pageStatus: 1, //1显示非整体转仓 2整体转仓
  };
  componentDidMount() {}

  // 子组件 页码切换
  goNext = (page) => {
    this.setState({ pageStatus: page });
    this.props.getStatus(page); //通知父组件更改滚动条状态
  };
  render() {
    let { pageStatus } = this.state;
    return (
      <div className={style.totalTransfer}>
        <div style={{ display: pageStatus == 1 ? 'block' : 'none' }}>
          <FirstContent args={this.props.args} goNext={this.goNext} />
        </div>
        {pageStatus == 2 && (
          <div>
            <TotalTransferC args={this.props.args} goNext={this.goNext} />
          </div>
        )}
      </div>
    );
  }
}

export default TransferInside;
